package com.gxa.modules.app.outpatient.medicalrecord.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.app.outpatient.medicalrecord.mapper.MedicalRecordInquiryMapper;
import com.gxa.modules.app.outpatient.medicalrecord.service.MedicalRecordInquiryService;
import com.gxa.modules.model.entity.hospital.MedicalRecordInquiry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * 作者 yuanqiufeng
 * Date 2022/11/14
 */
@Service
public class MedicalRecordInquiryServiceImpl extends ServiceImpl<MedicalRecordInquiryMapper, MedicalRecordInquiry> implements MedicalRecordInquiryService {

    @Autowired
    private MedicalRecordInquiryMapper medicalRecordInquiryMapper;

    @Override
    public List<MedicalRecordInquiry> queryAll(Integer patientId, Date startTime, Date endTime) {
        List<MedicalRecordInquiry> medicalRecordInquiryList = this.medicalRecordInquiryMapper.queryAll(patientId,startTime, endTime);
        return medicalRecordInquiryList;
    }

    @Override
    public MedicalRecordInquiry queryById(Integer id) {
        MedicalRecordInquiry medicalRecordInquiry = this.medicalRecordInquiryMapper.queryById(id);
        return medicalRecordInquiry;
    }
}
